﻿<UserControl x:Class="Coding4Fun.FakeCall.Controls.PhoneInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:Converters="clr-namespace:Coding4Fun.FakeCall.Converters"
	xmlns:c4fConverters="clr-namespace:Coding4Fun.Phone.Controls.Converters;assembly=Coding4Fun.Phone.Controls"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignWidth="480"
	Height="72">
	<UserControl.Resources>
		<Converters:TimeConverter x:Key="TimeConverter" />
		<c4fConverters:ThemedImageConverter x:Key="ThemedImageConverter" />
	</UserControl.Resources>
	<Grid VerticalAlignment="Top" x:Name="LayoutRoot" Margin="20,2,0,0">
		<Image 
			Name="signal"
			HorizontalAlignment="Left"
			DataContext="/Coding4Fun.FakeCall;component/Media/icons/{0}/fullBars.png"
			Stretch="None" 
			Source="{Binding Converter={StaticResource ThemedImageConverter}}" />
		<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
			
			<Image 
				Name="battery"
				Margin="0, 0, 14,0"
				DataContext="/Coding4Fun.FakeCall;component/Media/icons/{0}/fullBattery.png"
				Stretch="None" 
				Source="{Binding Converter={StaticResource ThemedImageConverter}}" />
			<TextBlock 
				Name="time"
				Style="{StaticResource PhoneTextTitle3Style}"
				FontSize="{StaticResource PhoneFontSizeNormal}"
				Text="{Binding Path=Settings.LockScreenTime, Converter={StaticResource TimeConverter}}" />
		</StackPanel>

	</Grid>
</UserControl>
